package a.h;

import javax.swing.*;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collection;

public class lc
  extends gc
{
  public static final String y = "IconOptionItem.ATTRIBUTE_LISTCELL_RENDERER";
  public static final String z = "IconOptionItem.ALLOW_BROWSE";
  public static final String A = "IconOptionItem.ALLOW_EMPTY_ICON";
  public static final String B = "IconOptionItem.EMPTY_ICON_VALUE";
  public static final String C = "IconOptionItem.AUTOUPDATE_ICONLIST";
  public static final String D = "IconOptionItem.CUSTOM_FILE_FILTER";
  private a_ E;
  static Class F;
  public static int G;
  
  public void a(a_ parama_)
  {
    this.E = parama_;
  }
  
  public String n()
  {
    return "URLIcon";
  }
  
  public a_ b()
  {
    return this.E;
  }
  
  public void a(Icon paramIcon, URL paramURL)
  {
    a(new dd(paramIcon, paramURL));
  }
  
  private void a(dd paramdd)
  {
    this.E.a(paramdd);
  }
  
  public lc(String paramString, a_ parama_, Object paramObject)
  {
    super(paramString, paramObject);
    if (ec.t == 0) {}
    a(F == null ? (lc.F = f("a.h.dd")) : F);
    this.E = parama_;
    a("IconOptionItem.ALLOW_BROWSE", Boolean.TRUE);
    a("IconOptionItem.ALLOW_EMPTY_ICON", Boolean.TRUE);
    a("IconOptionItem.EMPTY_ICON_VALUE", new dd(null, null));
    a("IconOptionItem.AUTOUPDATE_ICONLIST", Boolean.FALSE);
    rb localrb = new rb(null, 24, 24);
    a("IconOptionItem.ATTRIBUTE_LISTCELL_RENDERER", localrb);
    a(cd.d, localrb);
    a(cd.c, new md(this, null));
  }
  
  public void a(Object paramObject)
  {
    int i = ec.t;
    boolean bool = ec.s;
    Object localObject1 = paramObject;
    if (i == 0)
    {
      if ((paramObject instanceof Icon))
      {
        localObject1 = new dd((Icon)paramObject, null);
        if (i != 0) {
          break label104;
        }
        if (!bool) {
          break label87;
        }
      }
      if (i != 0) {}
    }
    else if ((paramObject instanceof URL))
    {
      Object localObject2 = null;
      localObject1 = b().b((URL)paramObject);
      if (i != 0) {
        break label104;
      }
      if (!bool) {
        break label87;
      }
    }
    localObject1 = paramObject;
    label87:
    super.a(localObject1);
    label104:
    if ((i != 0) || ((((Boolean)c("IconOptionItem.AUTOUPDATE_ICONLIST")).booleanValue()) && ((localObject1 instanceof dd)))) {
      a((dd)localObject1);
    }
  }
  
  public Object o()
  {
    Object localObject = super.o();
    return localObject;
  }
  
  public Icon q()
  {
    int i = ec.t;
    Object localObject = o();
    if (i == 0) {
      if ((localObject instanceof Icon)) {
        return (Icon)localObject;
      }
    }
    if ((i != 0) || ((localObject instanceof dd))) {
      return ((dd)localObject).a();
    }
    return null;
  }
  
  public void b(String paramString)
  {
    int i = ec.t;
    boolean bool = ec.s;
    if (i == 0) {
      if ("<NONE>".equals(paramString))
      {
        a(null);
        if ((i == 0) && (!bool)) {
          return;
        }
      }
    }
    if (i == 0)
    {
      if ("<null/>".equals(paramString)) {
        a(null);
      }
    }
    else if ((i == 0) && (!bool)) {
      return;
    }
    try
    {
      a(new URL(paramString));
    }
    catch (MalformedURLException localMalformedURLException)
    {
      localMalformedURLException.printStackTrace();
    }
  }
  
  public String h()
  {
    int i = ec.t;
    if (i == 0) {
      if (this.u == null) {
        return "<NONE>";
      }
    }
    if ((i != 0) || ((this.u instanceof dd)))
    {
      URL localURL = ((dd)this.u).b();
      if ((i != 0) || (localURL != null)) {
        return localURL.toString();
      }
      return "<null/>";
    }
    return "";
  }
  
  public boolean r()
  {
    int i = ec.t;
    if ((i != 0) || (this.u != null))
    {
      if ((i == 0) && (!(this.u instanceof dd))) {
        break label50;
      }
      if (i != 0) {
        break label47;
      }
    }
    label47:
    label50:
    return ((dd)this.u).c();
  }
  
  static Class f(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  public static abstract interface a_
  {
    public abstract Collection a();
    
    public abstract void a(Icon paramIcon);
    
    public abstract void a(URL paramURL);
    
    public abstract void a(dd paramdd);
    
    public abstract dd b(URL paramURL);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.lc

 * JD-Core Version:    0.7.0.1

 */